package com.gitee.jisong.common

import java.time.LocalDateTime

data class CtrlRes (
    val code : Int = ResCons.SUCCESS,
    val msg : String = ResMessage.SUCCESS,
    val data : Any? = null,
    val time : LocalDateTime = LocalDateTime.now()
){
    constructor(data:Any?) : this(ResCons.SUCCESS,ResMessage.SUCCESS,data,LocalDateTime.now())

    constructor(code:Int, msg : String) : this(code,msg,null,LocalDateTime.now())

}